<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="/lms/reader/css/readerChangePasswd.css" rel="stylesheet" type="text/css"/>
<script src="js/jquery.js" type="text/javascript"></script>
<script language="JavaScript" type="text/JavaScript">
document.onkeydown=function(event){ 
        e = event ? event :(window.event ? window.event : null); 
        if(e.keyCode==13){ 
        check();
            
        } 
    } 
function check(){
    if($.trim($("#readerPassword").val())==''){
    	$('#errorMsg').text('密码不能为空!') ;
		$("#readerPassword").focus();
		return;
	}
	if($.trim($("#readerPasswordNew").val())==''){
	   $('#errorMsg').text('原密码不能为空！') ;
		$("#readerPasswordNew").focus();
		return;
	}
	if($.trim($("#readerPasswordNewConfirm").val())==''){
		   $('#errorMsg').text('确认密码不能为空！') ;
			$("#readerPasswordNewConfirm").focus();
			return;
	}
	
	if($.trim($("#readerPasswordNew").val())!= $.trim($("#readerPasswordNewConfirm").val()) ){
		   $('#errorMsg').text('两次密码输入不一致') ;
			$("#readerPasswordNewConfirm").focus();
				return;
	}
	$("#frm").submit();
}
</script>
<title>读者修改密码</title>
</head>
<body>
<div id="container">
<div id="iframe1">
    <div id="title">
        <div id="left"> 
        	<img src="img/main/ifleft.gif" style="float:left" />
        	<span class="t1"><b>&nbsp;&nbsp;修改密码</b></span>
      	</div><!--left-->
      <!--right-->
    </div>
    <form id="frm" name="frm" method="post" action="/lms/reader/readerChangePasswd">
	<table width="276" border="1" bordercolor="#ffffff">
		<tr>
    		<td width="92" class="td2"><div align="right">原密码：</div></td>
    		<td width="168" colspan="2"><label>
    		<input name="readerPassword" type="password" id="readerPassword" />
    		</label></td>
  		</tr>
  		<tr>
    		<td class="td2"><div align="right">新密码：</div></td>
    		<td colspan="2"><input name="readerPasswordNew" type="password" id="readerPasswordNew" /></td>
  		</tr>
  		<tr>
  		  <td class="td2"><div align="right">确认新密码：</div></td>
  		  <td colspan="2"><input name="readerPasswordNewConfirm" type="password" id="readerPasswordNewConfirm" /></td>
	    </tr>
  		<tr>
  		<tr>
  		  <td class="td2"></td>
  		  <td colspan="2"><font color="red" size="2"><span id='errorMsg'>${actionErrorMessage}</span></font></td>
	    </tr>
  		<tr>
    		<td class="td2"><label></label></td>
    		<td><label>
    		  <div align="center">
    		    <input name="ChangePasswd" type="button" id="ChangePasswd" value="确认"  onclick= "check()"/>
  		      </div>
    		</label></td>
  		    <td><div align="center">
  		      <input name="Return" type="button" id="Return" onclick="javascript:self.location='/lms/reader/readerInfo.action'" value="返回" />
	        </div></td>
  		</tr>
	</table>

	</form>
    </div>
<!--iframe1-->
</div>
</body>
</html>